class Student(object):
    __slots__=("name","age","getname")

    def __init__(self, name):
        self.name = name


stu1 = Student("xiaowang")
stu1.age = 18
stu1.score = 99


